package com.demo.page9101.feign.bottom;

import com.demo.common.entity.ColumnManagement;
import com.demo.common.entity.CompanyDetails;
import com.demo.common.entity.MediaCoverage;
import com.demo.page9101.feign.impl.news.NewsFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;
/**
 * 底部小标
 * 作者：张兴然
 */
@FeignClient(name = "houpu-service-bean",fallback = NewsFeignImpl.class)
public interface BottomFeign {

    /**
     * 公司信息
     * @return
     */
    @GetMapping("/companyDetails")
    public CompanyDetails selectCompany();

    /**
     * 媒体标题
     * @return
     */
    @GetMapping("/media")
    public List<MediaCoverage> selectMedia();

    /**
     * 底部小标
     * @return
     */
    @GetMapping("/bottom")
    public List<ColumnManagement> selectColumn();

}
